# 11-检测一下有几个a
str='akwfhkhajhfajekfkkjaefjlawefjkahewafjalfk'

count =0

for x in str:
    if x=='a': 
        count+=1
print(count)